function T = static_g1_tt(T, y, x, params)
% function T = static_g1_tt(T, y, x, params)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T         [#temp variables by 1]  double   vector of temporary terms to be filled by function
%   y         [M_.endo_nbr by 1]      double   vector of endogenous variables in declaration order
%   x         [M_.exo_nbr by 1]       double   vector of exogenous variables in declaration order
%   params    [M_.param_nbr by 1]     double   vector of parameter values in declaration order
%
% Output:
%   T         [#temp variables by 1]  double   vector of temporary terms
%

assert(length(T) >= 49);

T = model_5_IRFs.static_resid_tt(T, y, x, params);

TEFD_fdd_9_1 = jacob_element('int_prod_disp',1,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4),y(9)*params(10)});
T(21) = TEFD_fdd_9_1;
TEFD_fdd_9_2 = jacob_element('int_prod_disp',2,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4),y(9)*params(10)});
T(22) = TEFD_fdd_9_2;
TEFD_fdd_9_11 = jacob_element('int_prod_disp',11,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4),y(9)*params(10)});
T(23) = TEFD_fdd_9_11;
TEFD_fdd_9_13 = jacob_element('int_prod_disp',13,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4),y(9)*params(10)});
T(24) = TEFD_fdd_9_13;
TEFD_fdd_1_1 = jacob_element('int_profit',1,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(25) = TEFD_fdd_1_1;
TEFD_fdd_1_2 = jacob_element('int_profit',2,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(26) = TEFD_fdd_1_2;
TEFD_fdd_1_11 = jacob_element('int_profit',11,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(27) = TEFD_fdd_1_11;
TEFD_fdd_2_1 = jacob_element('int_money',1,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(28) = TEFD_fdd_2_1;
TEFD_fdd_2_2 = jacob_element('int_money',2,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(29) = TEFD_fdd_2_2;
TEFD_fdd_2_11 = jacob_element('int_money',11,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(30) = TEFD_fdd_2_11;
TEFD_fdd_3_1 = jacob_element('int_liq',1,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),0});
T(31) = TEFD_fdd_3_1;
TEFD_fdd_3_2 = jacob_element('int_liq',2,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),0});
T(32) = TEFD_fdd_3_2;
TEFD_fdd_3_11 = jacob_element('int_liq',11,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),0});
T(33) = TEFD_fdd_3_11;
T(34) = getPowerDeriv(T(7),(params(3)-1)/params(3),1);
TEFD_fdd_4_3 = jacob_element('int_surplus',3,{0,1,y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(12),params(4)});
T(35) = TEFD_fdd_4_3;
TEFD_fdd_4_12 = jacob_element('int_surplus',12,{0,1,y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(12),params(4)});
T(36) = TEFD_fdd_4_12;
TEFD_fdd_6_1 = jacob_element('int_partial',1,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),0});
T(37) = TEFD_fdd_6_1;
TEFD_fdd_6_2 = jacob_element('int_partial',2,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),0});
T(38) = TEFD_fdd_6_2;
TEFD_fdd_6_11 = jacob_element('int_partial',11,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(12),params(13),params(14),params(4),0});
T(39) = TEFD_fdd_6_11;
TEFD_fdd_7_1 = jacob_element('int_acquisition',1,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(40) = TEFD_fdd_7_1;
TEFD_fdd_7_2 = jacob_element('int_acquisition',2,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(41) = TEFD_fdd_7_2;
TEFD_fdd_7_11 = jacob_element('int_acquisition',11,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(13),params(14),params(4)});
T(42) = TEFD_fdd_7_11;
TEFD_fdd_8_1 = jacob_element('int_2nd_price',1,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4)});
T(43) = TEFD_fdd_8_1;
TEFD_fdd_8_2 = jacob_element('int_2nd_price',2,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4)});
T(44) = TEFD_fdd_8_2;
TEFD_fdd_8_11 = jacob_element('int_2nd_price',11,{y(39),y(16),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(8),y(43),params(4)});
T(45) = TEFD_fdd_8_11;
T(46) = (-(1/(y(21)+y(29))-1/(y(21)+y(29))));
TEFD_fdd_0_1 = jacob_element('int_capital',1,{y(39),params(53),params(53),params(16),params(17),params(18),params(19),params(9),params(13),params(14)});
T(47) = TEFD_fdd_0_1;
TEFD_fdd_5_1 = jacob_element('average_log_normal',1,{y(40),params(20),params(21)});
T(48) = TEFD_fdd_5_1;
T(49) = y(25)*getPowerDeriv(y(46),1-params(3),1);

end
